package com.star.common;

import android.app.Application;

import com.squareup.leakcanary.LeakCanary;

/**
 * @des:
 * @author: sam
 * @date: 2021/2/1
 */
public class MyApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        if (LeakCanary.isInAnalyzerProcess(this)) {
            return;
        }
        LeakCanary.install(this);
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
